package com.iplant.basic.service.po.bfc;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.iplant.base.po.BasePO;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.iplant.base.po.enums.DBSchemas;
import com.iplant.base.utils.annotation.condition.DBCondition;
import com.iplant.base.utils.annotation.field.DBField;
import com.iplant.base.utils.annotation.po.DBBasePO;

@DBBasePO(TableName = "mbs_menu_group", CheckName = {"ProjectName,Type,Grad,GroupID,Name"}, Schemas = DBSchemas.Basic
        , Code = false, AllowDeleteTable = true)
public class BFCHomePageGroup extends BasePO implements Serializable {

    /**
     *
     */
    private static final long serialVersionUID = 1L;

    public BFCHomePageGroup() {
    }

    @DBCondition
    @DBField(Update = false)
    public String ProjectName = "";

    @DBField
    public String Icon = "";
    @DBField
    public String IconColor = "";

    @DBField
    public String Icon_S = "";

    @DBCondition
    @DBField(CheckValue = true, Update = false)
    public int Type = 0;
    @DBCondition
    @DBField
    public int GroupID = 0;

//	@DBCondition
//	@DBField(Update = false)
//	public int Grad = 0;

    /**
     * 权限ID  为0不做权限控制
     */

    @DBField
    public int RoleID = 0;


    @DBCondition
    @DBField
    public int IsDefault = 0;


    @DBField
    public int OrderNum = 0;

    public int MessageCount = 0;

    public List<BFCHomePageModule> ModuleList = new ArrayList<BFCHomePageModule>();

    @JsonProperty("Icon")
    public String getIcon() {
        return Icon;
    }

    public void setIcon(String icon) {
        Icon = icon;
    }

    @JsonProperty("Type")
    public int getType() {
        return Type;
    }

    public void setType(int type) {
        Type = type;
    }


    @JsonProperty("ModuleList")
    public List<BFCHomePageModule> getModuleList() {
        return ModuleList;
    }

    public void setModuleList(List<BFCHomePageModule> moduleList) {
        if (moduleList == null)
            moduleList = new ArrayList<BFCHomePageModule>();
        ModuleList = moduleList;
    }

    @JsonProperty("OrderNum")
    public int getOrderNum() {
        return OrderNum;
    }

    public void setOrderNum(int orderNum) {
        OrderNum = orderNum;
    }

    @JsonProperty("IsDefault")
    public int getIsDefault() {
        return IsDefault;
    }

    public void setIsDefault(int isDefault) {
        IsDefault = isDefault;
    }

//	@JsonProperty("Grad")
//	public int getGrad() {
//		return Grad;
//	}
//
//	public void setGrad(int grad) {
//		Grad = grad;
//	}

    @JsonProperty("Icon_S")
    public String getIcon_S() {
        return Icon_S;
    }

    public void setIcon_S(String icon_S) {
        Icon_S = icon_S;
    }

    @JsonProperty("RoleID")
    public int getRoleID() {
        return RoleID;
    }

    public void setRoleID(int roleID) {
        RoleID = roleID;
    }

    @JsonProperty("GroupID")
    public int getGroupID() {
        return GroupID;
    }

    public void setGroupID(int groupID) {
        GroupID = groupID;
    }

    @JsonProperty("MessageCount")
    public int getMessageCount() {
        return MessageCount;
    }

    public void setMessageCount(int messageCount) {
        MessageCount = messageCount;
    }

    @JsonProperty("IconColor")
    public String getIconColor() {
        return IconColor;
    }

    public void setIconColor(String iconColor) {
        IconColor = iconColor;
    }

    @JsonProperty("ProjectName")
    public String getProjectName() {
        return ProjectName;
    }

    public void setProjectName(String projectName) {
        ProjectName = projectName;
    }


}
